<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>

<body>
<img  id="win" style='position:relative' src="http://www.alixixi.com/UploadPic/2008-9/2008962512241.jpg">
<br /><br />
<button onclick="zd()">振动</button>
<script >
function zd(u){ 
 var a=['top','left'],b=0;
 u=setInterval(function(){
  document.getElementById('win').style[a[b%2]]=(b++)%4<2?0:4;
  if(b>15){clearInterval(u);b=0}
 },32)
}
</script></font>

<a href="http://js.alixixi.com/">欢迎访问阿里西西网页特效代码站，js.alixixi.com</a>
</body>
</html>
